#include "BDStartDialog.h"
#include <QtWidgets/QApplication>
#include "mmcogtestmsg.h"
#include "mmcogtest.h"
#include "libmmcogtest.h"
#include "BDMetaType.h"
#include <QThread>

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	BDMetaType::RegisterType();
	StartMessageLoop();
	StartUIReceiver();
	StartLibReceiver();
	QThread::msleep(200);
	BDStartDialog w;
	w.show();
	int result = a.exec();
	StopLibReceiver();
	StopUIReceiver();
	StopMessageLoop();
	return result;
}
